<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Tip Calculator Example</title>
    <link rel="stylesheet" href="style.css" />
</head>

<body>
    <div class="container">
        <h1>Tip Calculator</h1>
        <label for="bill">Bill Amount:</label>
        <input type="number" id="bill" min="0" placeholder="Enter bill amount" />

        <label>Tip Percentage:</label>
        <div class="tips">
            <button class="tip-btn" data-tip="10">10%</button>
            <button class="tip-btn" data-tip="20">20%</button>
            <button class="tip-btn" data-tip="30">30%</button>
            <input type="number" id="customTip" min="0" max="100" placeholder="Custom %" />
        </div>

        <label for="split">Split Bill (people):</label>
        <input type="number" id="split" min="1" value="1" />

        <div id="results">
            <p>Tip: ₹<span id="tip">0.00</span></p>
            <p>Total: ₹<span id="total">0.00</span></p>
            <p>Each Pays: ₹<span id="each">0.00</span></p>
        </div>
    </div>
    <script src="script.js"></script>
</body>

</html>